package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;
import com.indusfo.spc.common.pojo.Temporary;

import java.util.List;

public class Offline extends BasePojo {

    //下线工序ID
    private Integer offlineId;

    //下线工序名称
    private String offlineName;

    //工序类型
    //维修下线类型	1	工检
    //维修下线类型	2	生产
    private Integer offlineType;

    //备注
    private String remark;

    //数据状态
    private Integer dataState;

    private Long[] lProIds;

    //状态码翻译
    private String dataStateName;

    private String offlineTypeName;



    public String getDataStateName() {
        Integer dataState = getDataState();
        String dataStateName ="";
        switch (dataState){
            case 1:
                dataStateName = "启用";
                break;
            case 2:
                dataStateName = "删除";
                break;
            case 3:
                dataStateName = "停用";
                break;
        }
        return dataStateName;
    }


    public String getOfflineTypeName() {
        return offlineTypeName;
    }

    public void setOfflineTypeName(String offlineTypeName) {
        this.offlineTypeName = offlineTypeName;
    }

    public void setDataStateName(String dataStateName) {
        this.dataStateName = dataStateName;
    }

    private List<Temporary> list;

    public List<Temporary> getList() {
        return list;
    }

    public void setList(List<Temporary> list) {
        this.list = list;
    }

    public Long[] getlProIds() {
        return lProIds;
    }

    public void setlProIds(Long[] lProIds) {
        this.lProIds = lProIds;
    }

    public Integer getOfflineId() {
        return offlineId;
    }

    public void setOfflineId(Integer offlineId) {
        this.offlineId = offlineId;
    }

    public String getOfflineName() {
        return offlineName;
    }

    public void setOfflineName(String offlineName) {
        this.offlineName = offlineName == null ? null : offlineName.trim();
    }

    public Integer getOfflineType() {
        return offlineType;
    }

    public void setOfflineType(Integer offlineType) {
        this.offlineType = offlineType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }
}